package com.lyk.coursearrange.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyk.coursearrange.dao.UserAsPostDao;
import com.lyk.coursearrange.entity.UserAsPost;
import com.lyk.coursearrange.service.UserAsPostService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserAsPostServiceImpl extends ServiceImpl<UserAsPostDao, UserAsPost> implements UserAsPostService {

    @Autowired
    private UserAsPostDao userAsPostDao;

    @Override
    public void deleteByUserId(Long user_id) {
        userAsPostDao.deleteByUserId(user_id);
    }

    @Override
    public int insertByuserIdandpostId(Long user_id, Long po_id) {
        return userAsPostDao.insertByuserIdandpostId(user_id,po_id);
    }
}
